//
//  BaseViewController.h
//  quickBatchManager
//
//  Created by jack on 15/9/15.
//  Copyright (c) 2015年 jack. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSString+PJR.h"
#import <LKDBHelper.h>
#import "UIImagePickerController+LandScapeImagePicker.h"
#import "BaseNavigationController.h"
#import "MBProgressHUD.h"

@interface BaseViewController : UIViewController<UINavigationControllerDelegate, UIImagePickerControllerDelegate>

@property (nonatomic,strong) BaseViewController *parentVc;
-(void) initUI;
-(void) initData;
-(void) back;
-(void) addNavBack;

-(void)pickPhoto;
-(void)pickCamera;

-(void) showAlert:(NSString *)content;
-(void) showAlert:(NSString *)content handler:(void (^)(void))block;
-(void)textFieldChanged:(id)sender;
-(void) addTextFieldChange:(UITextField*)textField;
- (void)setEdge:(UIView*)supperView firstView:(UIView*)firstView secondView:(UIView*)secondView attr:(NSLayoutAttribute)attr constant:(CGFloat)constant;

-(void)showProgressHUD;
-(void)showProgressHUD:(NSString *)msg;
-(void)hideProgressHUD;
-(void)showToast:(NSString *)text;
-(void)reloadData:(ChangeType)changeType;
@end

